Builder

Builder class for androidx.core.app.RemoteInput objects.

Constructors

Link copied to clipboard
constructor(@NonNull resultKey: @NonNull String)
Create a builder object for androidx.core.app.RemoteInput objects.

Functions

Link copied to clipboard
@NonNull
open fun addExtras(@NonNull extras: @NonNull Bundle): @NonNull RemoteInput.Builder
Merge additional metadata into this builder.
Link copied to clipboard
@NonNull
open fun build(): @NonNull RemoteInput
Combine all of the options that have been set and return a new object.
Link copied to clipboard
@NonNull
open fun getExtras(): @NonNull Bundle
Get the metadata Bundle used by this Builder.
Link copied to clipboard
@NonNull
open fun setAllowDataType(@NonNull mimeType: @NonNull String, doAllow: Boolean): @NonNull RemoteInput.Builder
Specifies whether the user can provide arbitrary values.
Link copied to clipboard
@NonNull
open fun setAllowFreeFormInput(allowFreeFormTextInput: Boolean): @NonNull RemoteInput.Builder
Specifies whether the user can provide arbitrary text values.
Link copied to clipboard
@NonNull
open fun setChoices(choices: @Nullable Array<CharSequence>): @NonNull RemoteInput.Builder
Specifies choices available to the user to satisfy this input.
Link copied to clipboard
@NonNull
open fun setEditChoicesBeforeSending(editChoicesBeforeSending: Int): @NonNull RemoteInput.Builder
Specifies whether tapping on a choice should let the user edit the input before it is sent to the app.
Link copied to clipboard
@NonNull
open fun setLabel(@Nullable label: @Nullable CharSequence): @NonNull RemoteInput.Builder
Set a label to be displayed to the user when collecting this input.